/*
 * @Author: Liz.Zheng
 * @Date: 2021-10-11 17:37:34
 * @LastEditTime: 2022-07-09 15:33:33
 * @LastEditors: 郑亚莉 zhengyali@shequ.life
 * @Description: vuex store getters
 * @Motto: Write the code. Change the world.
 */

const getters = {
  token: (state) => state.user.token,
  lang: (state) => state.user.lang,
  mainAppProps: (state) => state.user.mainAppProps,
  userInfo: (state) => state.user.userInfo,
  orgInfo: (state) => state.user.orgInfo,
  buildingInfo: (state) => state.user.buildingInfo,
  menuList: (state) => state.user.menuList,
  menuNameList: (state) => state.user.menuNameList,
  appHeight: (state) => state.user.appHeight,
  appMenuList: (state) => state.user.appMenuList,
  microShareData: (state) => state.user.microShareData,
  selectedMenuKeys: (state) => state.app.selectedMenuKeys,
  selectedMenuNames: (state) => state.app.selectedMenuNames,
  currentRoute: (state) => state.user.currentRoute,
  currentActions: (state) => state.user.currentActions,
  departmentList: (state) => state.global.departmentList,
  departmentMember: (state) => state.global.departmentMember,
  uncheckCount: (state) => state.global.uncheckCount,
  departmentTopKey: (state) => state.global.departmentTopKey,
  buildingListInfo: (state) => state.global.buildingListInfo,
  leaseTempTags: (state) => state.global.leaseTempTags,
  printTempTags: (state) => state.global.printTempTags,
  contractAplTypeList: (state) => state.global.contractAplTypeList,
  approvalUserList: (state) => state.global.approvalUserList,
  iframeData: (state) => state.user.iframeData,
  approvalCurrentStep: (state) => state.approval.currentStep,
  approvalBasicInfo: (state) => state.approval.basicInfo,
  approvalFormDesign: (state) => state.approval.formDesign,
  approvalProcessDesign: (state) => state.approval.processDesign,
  approvalMoreSetting: (state) => state.approval.moreSetting,
  approvalDetail: (state) => state.approval.detail,
  approvalSubmitLoading: (state) => state.approval.submitLoading,
};

export default getters;
